<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;
use Spatie\EloquentSortable\Sortable;
use Spatie\EloquentSortable\SortableTrait;
class RcUser extends Model
{
	use HasDateTimeFormatter;

    protected $table = 'rc_user';
    protected $fillable = ['id', 'name','open_id','img','sum','card','deleted_at','created_at', 'updated_at','time'];
    public function retained()
    {
        return $this->hasOne(Retained::class,'user_openid','open_id');
    }
    
}
